﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <title>Meeting会议管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/styles/common.css"/>
</head>
<body>
<%@ include file="top.jsp" %>
<div class="page-body">
    <%@ include file="leftMenu.jsp" %>
    <div class="page-content">
        <div class="content-nav">
            个人中心 > <a href="${pageContext.request.contextPath}/myMeeting">最新通知</a> >${meeting.meetingname }
        </div>
        <table class="listtable">
            <tr class="listheader">
                <th style="width:300px">会议名称</th>
                <th>会议室</th>
                <th>会议室名称</th>
                <th>起始时间</th>
                <th>结束时间</th>
                <th>预定时间</th>
                <th>预订人</th>
                <th>描述</th>
            </tr>
            <tr>
                <td>${meeting.meetingname }</td>
                <td>${meeting.meetingRoom.roomNum }</td>
                <td style="font-size: 12px">${meeting.meetingRoom.roomName}</td>
                <td style="font-size: 12px"><fmt:formatDate
                        value="${meeting.starttime}"
                        pattern="yyyy-MM-dd HH:mm:ss"/></td>
                <td style="font-size: 12px"><fmt:formatDate
                        value="${meeting.endtime}"
                        pattern="yyyy-MM-dd HH:mm:ss"/></td>
                <td style="font-size: 12px"><fmt:formatDate
                        value="${meeting.reservationtime}"
                        pattern="yyyy-MM-dd HH:mm:ss"/></td>
                <td>${orderpeople }</td>
                <td>${meeting.description }</td>
            </tr>
            <%--            <#if ms??>--%>
            <%--                <#list ms as m>--%>
            <%--                    <tr>--%>
            <%--                        <td>${m.meetingname}</td>--%>
            <%--                        <td>${m.roomname}</td>--%>
            <%--                        <td>${m.starttime?string('yyyy-MM-dd HH:mm:ss')}</td>--%>
            <%--                        <td>${m.endtime?string('yyyy-MM-dd HH:mm:ss')}</td>--%>
            <%--                        <td>--%>
            <%--                            <a class="clickbutton" href="/meetingdetails?meetingid=${m.meetingid}">查看详情</a>--%>
            <%--                        </td>--%>
            <%--                    </tr>--%>
            <%--                </#list>--%>
            <%--            <#else>--%>
            <%--                <tr>未来七天不需要参加会议</tr>--%>
            <%--            </#if>--%>
        </table>
        <table class="listtable">
            <caption>
               参与该会议的员工：
            </caption>
            <tr class="listheader">
                <th style="width:300px">employeename</th>
                <th>username</th>
                <th>phone</th>
                <th>email</th>
                <th>部门</th>
                <th style="width:100px">操作</th>
            </tr>  <c:forEach items="${employee }" var="employee">
            <tr>
                <td>${employee.employeeName }</td>
                <td>${employee.username }</td>
                <td>${employee.phone }</td>
                <td>${employee.email }</td>
                <td>${employee.department.departmentname }</td>
                <td style="width:125px">
                    <a type="button" class="clickbutton"
                       href="${pageContext.request.contextPath}/delThisEmployee?meetingid=${meeting.meetingid}&&employeeid=${employee.employeeId}&&roomid=${meeting.meetingRoom.roomID}">删除</a></td>
            </tr>
        </c:forEach>

            <%--            <#if cms??>--%>
            <%--                <#list cms as cm>--%>
            <%--                    <tr>--%>
            <%--                        <td>${cm.meetingname}</td>--%>
            <%--                        <td>${cm.roomname}</td>--%>
            <%--                        <td>${cm.starttime?string('yyyy-MM-dd HH:mm:ss')}</td>--%>
            <%--                        <td>${cm.endtime?string('yyyy-MM-dd HH:mm:ss')}</td>--%>
            <%--                        <td>${cm.canceledreason!"没理由"}</td>--%>
            <%--                        <td>--%>
            <%--                            <a class="clickbutton" href="/meetingdetails?meetingid=${cm.meetingid}">查看详情</a>--%>
            <%--                        </td>--%>
            <%--                    </tr>--%>
            <%--                </#list>--%>
            <%--            <#else>--%>
            <%--                <tr>没有取消的会议</tr>--%>
            <%--            </#if>--%>
        </table>

    </div>
</div>
<%@include file="down.jsp"%>
</body>
</html>